Psst: Open the JavaScript Console and try to play around with these functions:
constructNote('aabbcc', 'bcabcaddff') // should return true
findAllDuplicates([4, 3, 2, 1, 0, 1, 2, 3]) // should return array
with 3, 2, and 1
findPair([8,6,2,4,1,0,2,5,13],1) // should return true
countZeroes([1,1,1,1,0,0]) // should return 2
sortedFrequency([1,1,2,2,2,2,3],2) // should return 4
findRotationCount([6, 7, 8, 9, 1, 2, 3, 4]) // should return 4
findRotatedIndex([6, 7, 8, 9, 1, 2, 3, 4], 3) // should return 6